import { defineConfig } from 'vite'
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import vue from '@vitejs/plugin-vue'
import path from "path"
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
      vue(),
    //   配置svg插件
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), 'src/icons')],
      symbolId:'icon-[dir]-[name]',
    })
  ],
  resolve: {
    alias:{
      "@": path.resolve("src")
    }
  },

})
